from time import time
a = time()
with open('m2_reverse.txt') as d:
    s = []
    for k in d:
        a.append([int(x) for e in k.split()])



for i in range(len(s)):
    for v in range(len(s)-i-1):
        if s[v] > s[v+1]:
         s[v], s[v+1] = s[v+1], s[v]
        
print(s)
ed = time()
m = ed - a
print(m)

